<?php
/***
 * 描述：用户后台首页管理模块
 * @category		Admin		
 * @package			Action			
 * @subpackage			
 * @author			wanght <whtaok@gmail.com>
 * @since			2013-4-6
 * @version			$Id: IndexAction.class.php 6 2013-10-22 08:26:07Z whtaok@gmail.com $
 */
class IndexAction extends AdminAction {
	/**
	 * 后台管理首页面
	 * @access		public
	 * @author		wanght<whtaok@gmail.com>
	 * @since		2013-3-3
	 */
	public function indexAct() {
		//头部菜单
		$role = 'admin';
		$this->assign('menu_top',$this->getMenuTop($role));
		$this->display('/index');
	}
	
	/**
	 * 显示左侧菜单页面
	 * @access		public
	 * @author	wanght<whtaok@gmail.com>
	 * @since		2013-3-3
	 */
	public function menuAct($menu_id) {
		$role = 'admin';
		$this->assign('menu_sub',$this->getMenuSub($role,$menu_id));
		$this->display('/left');
	}
	
	public function showBizMenuAddAct(){
		
		$this->display('System/menu_add');
	}
	
	
	/**
	 * 显示右侧内容页面
	 * @access		public
	 * @author	wanght<whtaok@gmail.com>
	 * @since		2013-3-3
	 */
	public function mainAct() {
		$mod = new OrderModel();
		$orderList = array();
		list($orderList[1]['list'],$orderList[1]['page'])=$mod->findListPageByOrderStatus($this->curr_shop_id,1);//获得新订单
		list($orderList[2]['list'],$orderList[2]['page'])=$mod->findListPageByOrderStatus($this->curr_shop_id,2);//获得配货中
		list($orderList[3]['list'],$orderList[3]['page'])=$mod->findListPageByOrderStatus($this->curr_shop_id,3);//获得配送中
		list($orderList[4]['list'],$orderList[4]['page'])=$mod->findListPageByOrderStatus($this->curr_shop_id,4);//获得已支付
		$this->assign('orderList',$orderList);
		$this->display('/main');
	}
	

}

?>